// TOWN DIALOGUE SCRIPT
//    Town 120: Delan

begintalkscript;

variables;

short i,j,k,r1,choice;

// Churdan

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Churdan";
	text1 = "At the sight of your well-traveled band, the innkeeper starts getting bottles of mead ready. Nobody else in the bar gives you much notice. _I'm Churdan. Welcome to my inn. You look thirsty._";
	text5 = "Churdan grins at you and keeps a bottle of mead close at hand. _What'll ya have?_";
	action = INTRO;

begintalknode; 
	state = 1;
	nextstate = 2;
	question = "_What can you provide us with, innkeeper?_";
	text1 = "_Well, our main business here is thirst management. We make the finest mead in Krizsan Province, for five coins. You can also get a room if you want. It's only ten coins._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_How is your mead?_";
	text1 = "_Believe me, it'll get ya' where you're goin'. Just ask for a drink when you're ready. Of course, you should be careful. Some folks have been sorta' affected by the stuff._";

begintalknode;
	state = 3;
	nextstate = 6;
	question = "_How are those folks usually affected?_";
	text1 = "_Some of my more, um, frequent customers said they saw a sprite atop a hill north of town. What a bunch of goofs!_";

begintalknode;
	state = 6;
	nextstate = 7;
	question = "_A sprite?_";
	text1 = "_Faerie creature. Hasn't been one of them around here for years and years and years. Thank goodness._";

begintalknode;
	state = 7;
	nextstate = -1;
	question = "_Why do you say 'thank goodness'?_";
	text1 = "He grimaces. _You must not know much about the faerie folk. Well, I'll tell you this for nothing. The wise don't deal with their kind. They don't know how to live up to their end of a bargain._";

	
begintalknode;
	state = 1;
	nextstate = -1;
	condition = coins_amount() >= 10;
	question = "_I need a place to sleep._ Pay 10 coins.";
	text1 = "You are shown to your room. It's surprisingly cozy. You sleep well and wake up refreshed.";
	action = END_TALK;	
	code =
		revive_party();
		change_coins(-10);
		relocate_char(get_pc_id(0),21,38,FALSE);
		relocate_char(get_pc_id(1),22,38,FALSE);
		relocate_char(get_pc_id(2),22,39,FALSE);
		relocate_char(get_pc_id(3),21,39,FALSE);
	break;


begintalknode;
	state = 1;
	nextstate = 4;
	condition = coins_amount() >= 5;
	question = "_I'll have a drink._ Pay 5 coins.";
	text1 = "Mead is a wine-like drink made from honey. The mead here is, indeed, excellent. It also makes you feel very wobbly. When you're through, the innkeeper says, _By the way, want some advice?_";
	code =
		force_char_status(30000,1,20);
		change_coins(-5);
	break;

begintalknode;
	state = 4;
	nextstate = -1;
	question = "_Sure. What's your advice?_";
	text1 = "_People in the small towns keep to themselves. Most of them won't wanna' talk to you. Always be sure to talk to the innkeepers, though. They'll know what's goin' on!_";

begintalknode;
	state = 1;
	nextstate = -1;
	condition = 1;
	question = "_I don't need anything._";
	text1 = "_Fine. Travel safe._";
	action = END_TALK;

// Feral

begintalknode;
	tag = 60;
	state = -1;
	nextstate = 29;
	question = "Feral";
	text1 = "You meet a seedy-looking archer of the Empire army. He's low on arrows, has dirty armor, and is several rounds into his mead-drinking session.";
	text2 = "He scoots over to make room for you as you sit down. _My pals call me Feral._ You aren't surprised.";
	text5 = "Feral leans close to you, favoring you with a gust of his reeking breath. _How you doin'?_";
	action = INTRO;

begintalknode;
	state = 29;
	nextstate = 30;
	question = "_Why are you in here and not on patrol?_";
	text1 = "_Well, I'm waiting here for my unit to get me, so we can go hunting for slimes. I'm really looking forward to it._ He rolls his eyes. _I got a lot out of my last patrol, but don't want to try to repeat the experience._";

begintalknode;
	state = 30;
	nextstate = 31;
	question = "_Where is the rest of your unit?_";
	text1 = "_They're days late. They may have gotten eaten by slimes. Be a shame._ He takes a swig of mead. _Good stuff, this._ He burps.";

begintalknode;
	state = 30;
	nextstate = -1;
	question = "_Do you like hunting slimes?_";
	text1 = "_As horribly dangerous, violent, pointless work goes, it's above average._";
	text3 = "_It's terrific! For some reason, the slimes are sluggish now. They don't fight. They're easy to kill. This is the best job I've ever had. No risk._";
	action = DEP_ON_SDF 307 3 0;

begintalknode;
	state = 30;
	nextstate = 32;
	question = "_What happened on your last patrol?_";
	text1 = "_Yeah, the last time I was on patrol, we found a bunch of escaped horses. We split 'em up among us, and then I won a few playin' cards. It was great! Horses are really rare now. The slimes love to eat them._";

begintalknode;
	state = 31;
	nextstate = 30;
	question = "_Don't you think you should excuse yourself?_";
	text1 = "_Excuse me._ He burps again.";

begintalknode;
	state = 32;
	nextstate = -1;
	question = "_How can I get some horses?_";
	text1 = "_You can't. They all got eated._";



// Wandering Monk

begintalknode;
	tag = 80;
	state = -1;
	nextstate = 57;
	question = "Wandering Monk";
	text1 = "You meet a quiet, young woman in light clothes. She moves silently through the town, seemingly looking for someone. She turns to you, looks you over, and seems disappointed.";
	text2 = "You ask her name. _I do not say my name, except to those I fully trust. That is a teaching of the wise man I seek._";
	text5 = "The monk watches you quietly.";
	action = INTRO;

begintalknode;
	state = 57;
	nextstate = 58;
	question = "_Are you looking for something?_";
	text1 = "_I seek a teacher._";

begintalknode;
	state = 58;
	nextstate = 59;
	question = "_Who is the teacher you seek?_";
	text1 = "_I know not his name. Nobody does. He is said to have great wisdom, and great knowledge._ She sighs sadly. _He is also difficult to find._";

begintalknode;
	state = 59;
	nextstate = 60;
	question = "_Sounds like he'd be worth finding._";
	text1 = "_He is a wizard, but his magical arts are second to the power of his mind. He says things that at first seem to make no sense, but then provide learning later on._";

begintalknode;
	state = 60;
	nextstate = 61;
	question = "_He is a great wizard but he makes no sense?_";
	text1 = "_Is that not wondrous?_ Her eyes flash with excitement. _If only I could locate him._";

begintalknode;
	state = 61;
	nextstate = -1;
	question = "_Perhaps we've seen him. What does he look like?_";
	text1 = "_I am tempted to ask if you have seen him, but I shall not. He has said, 'The goal is lost when the goal is achieved.'_";

begintalknode;
	state = 61;
	nextstate = -1;
	question = "_Do you have any clues about where he might be?_";
	text1 = "_I have heard he travels between Krizsan and Delan, and sometimes goes to other towns around here as well. I do so wish I could locate him. Alas, I am lacking in wisdom._";

begintalknode;
	state = 57;
	nextstate = 62;
	question = "_Maybe we can give you some wisdom?_";
	text1 = "She shakes her head. _The master says that those who have something to teach are those who have nothing to teach. So, logically, by offering to teach me, you prove that you offer nothing after all._";

begintalknode;
	state = 62;
	nextstate = 57;
	question = "_Ah! I understand!_";
	text1 = "She shakes her head. _The master says that that means that you do not understand._";

begintalknode;
	state = 62;
	nextstate = 57;
	question = "_But that makes no sense._";
	text1 = "_And when it makes less than no sense, it will be more true than truth. That is what the master says._";

